package com.junzhiit.nengji.app.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.app.service.GoodsDataHistoryService;
import com.junzhiit.nengji.app.web.vo.ResultVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/goods/data")
public class GoodsDataHistoryController extends BaseController{

	@Autowired
	private GoodsDataHistoryService goodsDataHistoryService;
	
	@ApiOperation(value = "查询订单历史数据")
	@RequestMapping(method = RequestMethod.GET)
	public ResultVO findAll(String ordersDataHistoryId) {
		AssertUtil.notBlank(ordersDataHistoryId,"ordersDataHistoryId is required.");
		return goodsDataHistoryService.findAll(ordersDataHistoryId);
	}
	
	
}
